package com.bysc.cmsservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Calendar;
import java.util.Date;

import java.io.Serializable;

import com.bysc.commonutils.enums.ClientEnum;
import com.bysc.commonutils.enums.FeedBackTypeEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 反馈表
 * </p>
 *
 * @author kkk
 * @since 2024-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CmsFeedback对象", description="反馈表")
public class CmsFeedback implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户名")
    private String name;

    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "反馈类型")
    private int typeId;

    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String typeName;

    @ApiModelProperty(value = "客户端")
    private int clientId;

    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.ALWAYS)
    private String clientName;

    @ApiModelProperty(value = "反馈图片url")
    private String image;

    @ApiModelProperty(value = "反馈类容")
    private String content;

    @ApiModelProperty(value = "逻辑删除(0未删除、1已删除)")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
